<?php
define('APPTYPEID', 1024);
define('CURSCRIPT', 'update');
define('RUNSCRIPT', true);

require_once './source/class/class_core.php';
require_once './source/function/function_plugin.php';

$discuz = & discuz_core::instance();

$discuz->init();

if(!$_G['adminid'] || !RUNSCRIPT){
	exit('Access Denied');
}

$sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'SQLUpdate.txt');

runquery($sql);

echo "OK";


$finish = TRUE;